DLL EXIST
This command determines whether a DLL has been loaded successfully.
Return Integer=DLL EXIST(DLL Number)
DLL Number
Integer
The DLL Number must be an integer value between 1 and 256
This value is an integer number such as 1.
The DLL Number must be an integer value between 1 and 256. If the DLL exists an integer value of one is returned, otherwise zero.
cls
print "Loading DLL..."
LOAD DLL "TestDLL.dll",1
if DLL EXIST(1)=1
print "Calling DLL Function...";
if DLL CALL EXIST(1, "?MyFunc@@YAXXZ")=1
print "okay."
CALL DLL 1, "?MyFunc@@YAXXZ"
else
print "does not exist."
endif
print "Calling DLL Function with Return Value...";
if DLL CALL EXIST(1, "?MyFunc@@YAHH@Z")=1
print CALL DLL(1, "?MyFunc@@YAHH@Z")
else
print "does not exist."
endif
print "Deleting DLL..."
DELETE DLL 1
else
print "not loaded."
endif
do
loop
end
SYSTEM Commands Menu
Index